

import { Injectable, Injector } from '@angular/core';
import { _HttpClient } from '@delon/theme';
import { NzMessageService } from 'ng-zorro-antd/message';
import { map } from 'rxjs/operators';
import { BaseService } from 'src/app/shared/services/core/base.service';
import { EAFileUtil } from 'src/app/shared/utils/file.util';

@Injectable({
  providedIn: 'root',
})
export class AccountService extends BaseService {

  // 获取当前登录用户详情
  $api_get_current_user_info = `/api/mdc/cuc/user/getUserInfo`;

  // 根据当前登录用户绑定的手机号码获取短信验证码
  $api_get_current_user_smVerification = `/api/mdc/pbc/smsSend/getSmVerificationCodeByToken`;
  // 获取短信验证码
  $api_get_getSMVerificationCode = `/api/mdc/pbc/smsSend/getSMVerificationCode`;

  // 验证手机号
  $api_get_verifyPhone = `/api/mdc/cuc/userBasicInfo/forgetPassword/verifyPhone`;

  // 凭证修改手机号
  $api_set_voucherUpdatePhone = `/api/mdc/cuc/userBasicInfo/forgetPassword/voucherUpdatePhone`;
  // 凭证修改密码
  $api_set_phoneUpdatePassword = `/api/mdc/cuc/userBasicInfo/phoneUpdatePassword`;
  // 凭证修改设置身份密码
  $api_voucherUpdatePayPassword = '/api/mdc/cuc/userVerify/forgetPassword/voucherUpdatePassword';
  // 根据当前登录用户绑定的手机号码获取短信验证码
  public $api_get_msg_code = `/api/mdc/pbc/smsSend/getSmVerificationCodeByToken`;
  // 用户下默认企业项目
  $api_getUserDefaultEnterpriseProject = '/api/mdc/cuc/enterpriseProject/getUserDefaultEnterpriseProject';
  // 当前登录用户是否设置用户验证密码
  $api_isUserVerifyPassword = '/api/mdc/cuc/userVerify/isUserVerifyPassword';

  constructor(public injector: Injector) {
    super(injector);
  }
}
